package com.margo.project.web.config;

import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.margo.project.web.servlet.MargoRegistrationServlet;

@Configuration
public class MargoWebRegistrationConfiguration {

	@Bean
	public ServletRegistrationBean<MargoRegistrationServlet> margoServletRegistrationBean(){
		ServletRegistrationBean<MargoRegistrationServlet> bean=new ServletRegistrationBean<>();
		bean.setServlet(new MargoRegistrationServlet());
        bean.addUrlMappings("/registration/servlet.do");
		return bean;
	}
}
